When using c:if test="${empty command.propertyList}" and c:if test="${not empty command.propertyList
Posted
by Arthur Ronald F D Garcia
on Stack Overflow
See other posts from Stack Overflow
or by Arthur Ronald F D Garcia
Published on 2010-06-11T17:53:20Z
Indexed on
2010/06/11
19:02 UTC
Read the original article
Hit count: 392
Hi, I use the following markup to generate a collection of elements
<c:if test="${empty command.materialList}">
<span>It has been evaluated</span>
more code...
</c:if>
<c:if test="${not empty command.materialList}">
<span>It has been evaluated</span>
more code...
</c:if>
But both conditional statements are evaluated. Am i missing some info ???
© Stack Overflow or respective owner